import React from 'react';
import { SWRConfig } from 'swr';
import { swrConfig } from '../utils/swr';

interface SWRProviderProps {
  children: React.ReactNode;
}

export const SWRProvider: React.FC<SWRProviderProps> = ({ children }) => {
  return <SWRConfig value={swrConfig}>{children}</SWRConfig>;
};

export default SWRProvider;
